<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>机器二维码管理</title>
		<link rel="stylesheet" type="text/css" href="css/jqgl.css"/>
		<link rel="stylesheet" type="text/css" href="css/jiqiguanli2.css"/>
	</head>
	<body>
		<div class="main_content">
				<div class="con_left">
					<div class="l-box ">
						<a href="jqgl.html">机器管理</a>
					</div>
					<div class="l-box in">
						<a href="jqgl2.html">机器二维码管理</a>
					</div>
				</div>
				<div class="con_right fl">
					<div class="r_main">
						<form action="" method="post" style="display: inline;">
							<div class="search">
								<span>条件查找<strong>|</strong></span>
									<div class="d-i-b vertical-top">
										<div class="s-one d-i-b">每页显示条数：
											<div class="f-inp-s d-i-b yeshu">
												<div>
													<select name='make'>
													    <option value='默认' selected>默认</option>
													    <option value='10'>10</option>
													    <option value='30'>30</option>
													    <option value='50'>50</option>
													    <option value='100'>100</option>
													    <option value='300'>300</option>
													</select>
												</div>
												<div class="s_img">
													<img src="img/select.png"/>
												</div>
											</div>
										</div>
										<div class="s-one d-i-b">排序：
											<div class="f-inp-s d-i-b px">
												<div>
													<select name='make'>
													    <option value='机器二维码' selected>机器二维码</option>
													    <option value='商户编号'>商户编号</option>
													</select>
												</div>
												<div class="s_img">
													<img src="img/select.png"/>
												</div>
											</div>
										</div>
										<div class="s-one d-i-b">所属商户：
											<div class="f-inp-s d-i-b">
												<div>
													<select name='make'>
													    <option value='全部' selected>全部</option>
													</select>
												</div>
												<div class="s_img">
													<img src="img/select.png"/>
												</div>
											</div>
										</div>
										<div class="s-one d-i-b">绑定状态：
											<div class="f-inp-s d-i-b px">
												<div>
													<select name='make'>
													    <option value='全部' selected>全部</option>
													    <option value='dodge'>已绑定</option>
													    <option value='ford'>未绑定</option>
													</select>
												</div>
												<div class="s_img">
													<img src="img/select.png"/>
												</div>
											</div>
										</div><br />
										<div class="s-one d-i-b">关键字：
											<input type="text"><button  class="btn-s">搜索</button>
										</div><br />
									</div>
							</div>
							<table border="1" cellspacing="0" cellpadding="0">
								<tr>
									<th style="width: 60px;">序号</th>
					                <th style="width: 60px;">编号</th>
					                <th style="width: 80px;">绑定状态</th>
					                <th style="width: 80px;">不变二维码</th>
					                <th>机器Id</th>
					                <th style="width: 100px;">机器编号</th>
					                <th style="width: 100px;">商户编号</th>
					                <th style="width: 200px;">绑定时间</th>
					                <th style="width: 200px;">创建时间</th>
								</tr>
								<tr>
									<td>1</td>
									<td>3</td>
									<td><a href="#" onclick="sendurl1('MachineQRcode_Bind.html','绑定机器',true,310,160)"><span>绑定</span></a></td>
									<td><a href="#" onclick="sendurl1('QRCode1.html','机器不变二维码',true,550,370)"><img src="img/QRcode.png"/></a></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td>2017-11-28 10:09:46</td>
								</tr>
							</table>
							<a  onclick="javascript:window.location.href='jqgl2-1.html'"><span class="pltj btn">批量添加</span></a>
							<a  href="javascript:;" style="color: #000;"><span class="btn tupianxiazai">机器二维码图片下载</span></a>
						</form>
					</div>
				</div>
				<div class="mask"></div>
				<div id="openWindowModal" class="modal in" >   
				    <div class="modal-header">
				        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				        <h3>角色设置</h3>  
				    </div>
				    <div class="modal-body" 	>
						<iframe src="" style="width: 100%;height: 99%;"  frameborder="no" id="openWindowIFrame"></iframe>
				    </div>
				    <!--<div class="modal-footer">
				    	<button id="openWindowBtn" class="btn btn-primary" type="submit">确 定</button>
				        <button class="btn close" data-dismiss="modal" aria-hidden="true" type="button">取 消</button>
				    </div>-->
				</div>
			</div>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$($("#xinzeng").on('click',function(){
				$(".mask").fadeIn();
				$("#openWindowModal").fadeIn();
			}))
			function closewindow(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$('#openWindowIFrame').attr('src','');
			}
			$(".close").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$('#openWindowIFrame').attr('src','');
			})
			$(".mask").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$('#openWindowIFrame').attr('src','');
			})
//			$('#openWindowBtn').on('click',function(){
//				$(document).ready(function(){
//					$('#openWindowBtn').click(function(e) {
//						console.log($('#openWindowIFrame').contents().find("#btnSubmit").length)
//						if ($('#openWindowIFrame').contents().find("#btnSubmit").length > 0){
//							$('#openWindowIFrame').contents().find("#btnSubmit").click();
//						}else{
//				        	$('#openWindowIFrame').contents().find(":submit").click();
//						}
//					});
//				});
//			})
		</script>
	</body>
</html>
